function getParams() {

}

getParams.prototype = {
	getQueryString:function(name) { 
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); 
        var r = window.location.search.substr(1).match(reg); 
        if (r != null) return unescape(r[2]); return null; 
    },
    getParamsObj:function() {   
       var url = window.location.search; //获取url中"?"符后的字串   
       var theRequest = new Object();   
       if (url.indexOf("?") != -1) {   
            var str = url.substr(1);   
            strs = str.split("&");   
            for(var i = 0; i < strs.length; i ++) {   
              //就是这句的问题
             theRequest[strs[i].split("=")[0]]=decodeURI(strs[i].split("=")[1]); 
             //之前用了unescape()
             //才会出现乱码  
            }   
       }   
       return theRequest;   
    },
    getElem:function(id) {
        return document.getElementById(id);
    },
    getElemsByName:function(TagName) {
        return document.getElementsByTagName(TagName);
    },
    showTips:function(txt) {
        var obj = $("#txt-tips");
        obj.html(txt);
        obj.css({
            opacity:1,
            webkitTransform:"scaleY(1)",
            transform:"scaleY(1)"
        });

        var timer = setTimeout(function() {
            obj.css({
                opacity:0,
                webkitTransform:"scaleY(0.01)",
                transform:"scaleY(0.01)"
            });
            clearTimeout(timer);
        }, 2000);
    },
    hideLoadMask:function() {
        $("#load-wrap").css({
            transform: "scaleY(0.0001)",
            opacity:0,
        })
    }

}
